package com.coincalf.mapper;

import com.coincalf.dto.ClosePositionDTO;
import com.coincalf.entity.ForexClosePositionOrder;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 平仓详情 Mapper 接口
 * </p>
 *
 * @author qiang
 * @since 2018-05-12
 */
public interface ForexClosePositionOrderMapper extends BaseMapper<ForexClosePositionOrder> {

    /**
     * 今日平仓
     *
     * @param userId 用户ID
     * @return
     */
    List<ClosePositionDTO> selectTodayList(@Param("userId") long userId);
}
